<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>Examples</title>
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <link href="" rel="stylesheet" />
  <style>
    .title {
      font-size: 100px;
    }

    .color {
      color: red;
    }

    .weight {
      font-weight: 900;
    }
  </style>
</head>

<body>
  <div id="root">
    <!-- <div :class="{title:titleCls, color:colorCls}"> -->
    <!-- <div class="weight" :class="cls"> -->
    <!-- <div :class="clsArr">
      {{title}}
    </div> -->
    <div :style="{fontSize:'100px'}">
      {{title}}
    </div>
    
  </div>
  <script src="../vue.js"></script>
  <script>
    var vm = new Vue({
      el: "#root",
      data: {
        title: 'hello',
        titleCls: false,
        colorCls: true,
        cls: {
          title: false,
          color: true
        },
        clsArr: [
          'weight', {
            title: false,
            color: true
          }
        ],
      },
      mounted() {
        this.cls.title = true

      },

    })


    // 去掉run...提示
    Vue.config.productionTip = false
  </script>
</body>

</html>